package com.lmk.sentinel;

import com.alibaba.csp.sentinel.slots.block.BlockException;
import com.lmk.User;
import org.springframework.web.bind.annotation.PathVariable;
/*限流托底数据*/
public class Currentlimiting {
    public static User Currentlimitingmethod(@PathVariable("id") Long id, BlockException e){
        e.printStackTrace();
        return new User(-1L, "流量过大导致服务降级触发！", "当前服务流量过大，请稍后重试！");
    }
}
